package org.lanqiao.tjut.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.OperatorBean;
import org.lanqiao.tjut.dao.IOperstorDao;
import org.lanqiao.tjut.service.IOperatorInfoService;
import org.springframework.stereotype.Service;

@Service("opS")
public class IOperatorInfoServiceImpl implements IOperatorInfoService {
	@Resource
	private IOperstorDao opDao;

	@Override
	public List<OperatorBean> selectOperInfoByParams(OperatorBean opB) {
		// TODO Auto-generated method stub
		 List<OperatorBean> lstOpS = null;
		lstOpS= opDao.selectOperInfoByParams(opB);
		return lstOpS;
	}

	@Override
	public int deleteByPrimaryKey(Short opId) {
		// TODO Auto-generated method stub
		int i = 0;
		i = opDao.deleteByPrimaryKey(opId);
		return i;
	}

	@Override
	public int insert(OperatorBean opB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = opDao.insert(opB);
		return i;
	}

	@Override
	public int insertSelective(OperatorBean opB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = opDao.insertSelective(opB);
		return i;
	}

	@Override
	public OperatorBean selectByPrimaryKey(Short opId) {
		// TODO Auto-generated method stub
		OperatorBean lstOp = null;
		lstOp = opDao.selectByPrimaryKey(opId);
		return lstOp;
	}

	@Override
	public int updateByPrimaryKeySelective(OperatorBean opB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = opDao.updateByPrimaryKeySelective(opB);
		return i;
	}

	@Override
	public int updateByPrimaryKey(OperatorBean opB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = opDao.updateByPrimaryKey(opB);
		return i;
	}

	@Override
	public List<OperatorBean> findOperByNameAndPwd(OperatorBean opB) {
		// TODO Auto-generated method stub
		List<OperatorBean>  lstOps = null;
		lstOps = opDao.findOperByNameAndPwd(opB);
		return lstOps;
	}

	

}
